package com.supermap.data.modal;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 行业信息
 * TUser entity. @sun'f
 */
@Entity
@Table(name = "T_INDUSTRY")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class TIndustry {

    /**
     * 主键
     */
    private String id;
    /**
     * 行业类型
     */
    private int industry_type;
    /**
     * 行业名称
     */
    private String industry_name;
    /**
     * 行业代码
     */
    private String industry_code;
    /**
     * 上级行业代码
     */
    private String parcode;


    public TIndustry() {
    }


    public TIndustry(String id, int industry_type, String industry_name, String industry_code, String parcode) {
        this.id = id;
        this.industry_type = industry_type;
        this.industry_name = industry_name;
        this.industry_code = industry_code;
        this.parcode = parcode;
    }

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name = "ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "INDUSTRY_TYPE")
    public int getIndustry_type() {
        return industry_type;
    }

    public void setIndustry_type(int industry_type) {
        this.industry_type = industry_type;
    }

    @Column(name = "INDUSTRY_NAME")
    public String getIndustry_name() {
        return industry_name;
    }

    public void setIndustry_name(String industry_name) {
        this.industry_name = industry_name;
    }

    @Column(name = "INDUSTRY_CODE")
    public String getIndustry_code() {
        return industry_code;
    }

    public void setIndustry_code(String industry_code) {
        this.industry_code = industry_code;
    }

    @Column(name = "PARCODE")
    public String getParcode() {
        return parcode;
    }

    public void setParcode(String parcode) {
        this.parcode = parcode;
    }
}
